<?php

namespace app\index\controller;

use app\admin\model\Baner;
use app\common\controller\Frontend;
use think\Model;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function banner()
    {

        $banner = Baner::Where('status',1)->limit(3)->select();
        return sucessMsg($banner,'查询成功');
    }

}
